home *** CD-ROM | disk | FTP | other *** search
- property pMySprite, pState, pBlinkerTime
-
- on beginSprite me
- pMySprite = sprite(me.spriteNum)
- pState = 0
- end
-
- on hotspotOn me
- pMySprite.blend = 100
- pState = 1
- pBlinkerTime = the milliSeconds
- end
-
- on hotspotOff me
- pMySprite.blend = 0
- pState = 0
- end
-
- on exitFrame me
- if pState then
- if the milliSeconds < (pBlinkerTime + 750) then
- nothing()
- else
- if pMySprite.blend = 100 then
- pMySprite.blend = 0
- else
- pMySprite.blend = 100
- end if
- pBlinkerTime = the milliSeconds
- end if
- end if
- end
-